package com.youcash.ZyWallet_spring.controller;

import com.youcash.ZyWallet_spring.service.InstalmentMethodService;
import com.youcash.ZyWallet_spring.vo.ResultVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Zhangzifeng
 */
@RestController
@RequestMapping("/iMethod")
@CrossOrigin
@Api(value = "提供分期方式的添加、修改、删除、查询的相关接口",tags = "分期方式管理")//类注解：可以对控制器类进行详细说明
public class InstalmentMethodController {

    @Autowired
    private InstalmentMethodService instalmentMethodService;

    @GetMapping("/get")
    @ApiOperation("获取分期类型的接口")
    public ResultVO listMethod() {
        return instalmentMethodService.listMethod();
    }
}
